 
<div id="page{$page}" data-total="{$totalpage}" class="totalpage"></div>
{loop $msglist $msginfo} 
    {if $msginfo['whocss'] == 'aui-chat-right'}
	<div class="cu-item aui-chat-right">
	    <div class="main">    
          <div class="date">  {$msginfo['addtime']}</div>
	      <div class="content shadow">
	        <p> {$msginfo['content']} </p>
	      </div>
	    </div>
        <div class="how">
            <div > 
                <img  class="cu-avatar radius" src="{$msginfo['thumb']}"  width="60" height="60" />                
            </div>
            <span>{$msginfo['name']}</span>
        </div>
	   
	  </div>
	<!-- 显示左边 排列样式 -->
    {else}
	  <div  class="cu-item aui-chat-left">
        <div class="how">
	        <div >
            <img class="cu-avatar radius"  src="{$msginfo['thumb']}"  width="60" height="60" />
            </div>
         <span>{$msginfo['name']} </span>
        </div>
	    <div class="main">
            <div class="date "> {$msginfo['addtime']}</div>
	      <div class="content shadow">
	        <p> {$msginfo['content']} </p>
	      </div>
	    </div>
	   
	  </div>
	{/if}   
{/loop}
 
